package com.fable.dal.mapper;

import com.fable.dal.model.AttributeDO;
import com.fable.dal.model.AttributeQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for Attribute.
 */
public interface AttributeMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(AttributeQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(AttributeQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(AttributeDO record);

    /**
     * insert selective.
     */
    int insertSelective(AttributeDO record);

    /**
     * select by query condition.
     */
    List<AttributeDO> selectByQuery(AttributeQuery query);

    /**
     * select by primary key.
     */
    AttributeDO selectByPrimaryKey(Integer id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") AttributeDO record, @Param("query") AttributeQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") AttributeDO record, @Param("query") AttributeQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(AttributeDO record);
}